From: Heiner Kallweit Date: Mon, 16 Nov 2015 19:52:17 +0000 (-0200) Subject: [media] media: rc: constify struct proto_names X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~3119^2~259 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=53df87771715d6a68013be404350074bec9ad8db;p=linux-4.9.git [media] media: rc: constify struct proto_names Declare struct proto_names and its member name as const. Signed-off-by: Heiner Kallweit Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index ba5df4b81b9d..9d05d03caa13 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -777,9 +777,9 @@ static struct class rc_class = { * used by the sysfs protocols file. Note that the order * of the entries is relevant. */ -static struct { +static const struct { u64 type; - char *name; + const char *name; const char *module_name; } proto_names[] = { { RC_BIT_NONE, "none", NULL },